import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    shoplist:[]
  },
  mutations: {
    jia(state,item){
   
      state.shoplist.push(item)
      // console.log(state.shoplist)  
    }
  
  },
  actions: {
  },
  modules: {
  }
})
